﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using System.IO;
using UnitTestThreadApartmentState;

namespace SmallTune.Test.Boot
{
    [TestFixture]
    public class SmallTuneBootStrapperTest
    {
        [Test]
        public void CreateDatabase()
        {
            CrossThreadTestRunner runner = new CrossThreadTestRunner();
            runner.RunInSTA(
              delegate
              {
                  //This test proves, if a database can be created
                  SmallTuneBootStrapper stb = new SmallTuneBootStrapper();
                  stb.CreateDatabase();
                  Assert.AreEqual(true, File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\SmallTune\SmallTune.db"));

              });
        }
    }
}
